package com.ruoyi.custom.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户车辆（存储用户名下车辆的详细信息）对象 car_info
 * 
 * @author wjq
 * @date 2025-09-17
 */
public class CarInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆主键（自增，无符号整数，避免负数） */
    private String id;

    /** 用户ID（关联用户表的id） */
    @Excel(name = "用户ID", readConverterExp = "关=联用户表的id")
    private String uid;

    /** 所属品牌ID（关联汽车品牌表的id） */
    @Excel(name = "所属品牌ID", readConverterExp = "关=联汽车品牌表的id")
    private String bid;

    /** 所属车型ID（关联车辆类型表的id） */
    @Excel(name = "所属车型ID", readConverterExp = "关=联车辆类型表的id")
    private String carType;

    /** 车牌号（车辆唯一标识，非空） */
    @Excel(name = "车牌号", readConverterExp = "车=辆唯一标识，非空")
    private String carNum;

    /** 车辆照片路径（存储图片的URL或服务器路径，可为空） */
    @Excel(name = "车辆照片路径", readConverterExp = "存=储图片的URL或服务器路径，可为空")
    private String carImg;

    /** 删除状态：0-未删除，1-已删除（逻辑删除标识） */
    private Long deleted;

    /** 是否默认车辆：1-默认，0-非默认 */
    @Excel(name = "是否默认车辆：1-默认，0-非默认")
    private Long isDefault;

    /** 用户名称（关联查询结果） */
    private String userName;

    /** 品牌名称（关联查询结果） */
    private String brandName;

    /** 车型名称（关联查询结果） */
    private String carTypeName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setUid(String uid) 
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }

    public void setBid(String bid) 
    {
        this.bid = bid;
    }

    public String getBid() 
    {
        return bid;
    }

    public void setCarType(String carType) 
    {
        this.carType = carType;
    }

    public String getCarType() 
    {
        return carType;
    }

    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }

    public void setCarImg(String carImg) 
    {
        this.carImg = carImg;
    }

    public String getCarImg() 
    {
        return carImg;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    public void setIsDefault(Long isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Long getIsDefault() 
    {
        return isDefault;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }

    public void setCarTypeName(String carTypeName) 
    {
        this.carTypeName = carTypeName;
    }

    public String getCarTypeName() 
    {
        return carTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("bid", getBid())
            .append("carType", getCarType())
            .append("carNum", getCarNum())
            .append("carImg", getCarImg())
            .append("deleted", getDeleted())
            .append("isDefault", getIsDefault())
            .append("userName", getUserName())
            .append("brandName", getBrandName())
            .append("carTypeName", getCarTypeName())
            .toString();
    }
}
